local skel = fk.CreateSkill {
  name = "emo__tianyou",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["emo__tianyou"] = "天佑", -- 阿瓦隆，天佑之岛
  [":emo__tianyou"] = "锁定技，取消你成为每名其他角色对你使用的前三张非【桃】牌的目标。",

  ["$emo__tianyou1"] = "真不错。",
  ["$emo__tianyou2"] = "还差得远！",
}

skel:addEffect(fk.TargetConfirming, {
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    if target == player and player:hasSkill(skel.name) and data.from ~= player and data.card.trueName ~= "peach" then
      return #table.filter(player:getTableMark(skel.name), function(id) return id == data.from.id end) < 3
    end
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:addTableMark(player, skel.name, data.from.id)
    data:cancelTarget(player)
  end,
})

return skel
